﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Web;
using HexagonWeb.Models;

namespace HexagonWeb.IBIL
{
    public interface InterfaceUserService : InterfaceBaseService<User>
    {
        //用户是否存在
        bool Exist(string userName);

        //查找用户
        User Find(string userName);

        //用户列表
        IQueryable<User> FindPageList(int pageIndex, int pageSize, out int totalRecord,
            int order);

        //身份认证系统
        ClaimsIdentity CreateIdentity(User user, string autheticationType);
    }
}